<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">邮箱配置</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li><a href="{:url('mailer/index')}">{:lang('ADMIN_MAILER_INDEX')}</a></li>
                                <li class="layui-this">
                                    <a href="{:url('mailer/template',['template_key'=>'verification_code'])}" data-toggle="tab">验证码邮件模板</a>
                                </li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="layui-form js-ajax-form" role="form" action="{:url('admin/mailer/templatePost')}">
                                        <div class="layui-form-item">
                                            <label for="input-title" class="layui-form-label"><span style="color:#FF5722;">*</span>{:lang('EMAIL_SUBJECT')}</label>
                                            <div class="layui-input-block">
                                                <input type="text" class="layui-input" name="subject" id="input-title" value="{$subject|default=''}">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="input-title" class="layui-form-label"><span style="color:#FF5722;">*</span>{:lang('EMAIL_TEMPLATE')}</label>
                                            <div class="layui-input-block">
                                                <textarea id="edit" name="template" style="display:none;">{$template|default=""|htmlspecialchars_decode}</textarea>
                                                <input id="edit-input" name="template" value='{$template|default=''|htmlspecialchars_decode}' type="hidden" />
                                                <literal><span style="color: #ffb752;">请用{$code}代替数字验证码</span></literal>
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-layout-admin">
                                            <div class="layui-input-block">
                                                <div class="layui-footer" style="left: 0;">
                                                    <input type="hidden" name="template_key" value="verification_code">
                                                    <button lay-submit class="layui-btn js-ajax-submit" lay-filter="submit" data-refresh="0">{:lang('SAVE')}</button>
                                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>